﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;

namespace ERPStore.NewsLetters.ModelValidators
{
	public class PendingItemValidator : AbstractValidator<Models.PendingItem>
	{
		public PendingItemValidator()
		{
			RuleFor(m => m.CampaignId).GreaterThan(0).WithMessage("La campagne doit etre renseignée");
			RuleFor(m => m.EmailRecipientId).GreaterThan(0).WithMessage("Le mail associé doit etre renseigné");
		}
	}
}
